
<div class="title">
  	<h3>
  		<a href="{:url('shop/Category/index')}">全部商品分类</a>
  	</h3>
  	<i></i>
</div>

<div class="category">
  	<ul class="menu">
  		{volist name="show_goods_class" id="val" length='8' key="j"}
    		<li cat_id="{$val['gc_id']}" class="{if($j%2==1)} odd {else /} even {/if}">
	      		<div class="class">
		      		<span class="arrow"></span>
		      		
		        	{if($val['cn_pic'] != '')}
		        		<span class="ico" style="background-image:url(__APP__{$val['cn_pic']})"></span>
		        	{/if}
		            {if (!empty($val['channel_id']))}
		              	<h4><a href="{:url('shop/Channel/index',array('id'=>$val['channel_id']))}">{$val['gc_name']}</a></h4>
		            {else /}
		              	<h4><a href="{:url('shop/Search/index',array('cate_id'=>$val['gc_id']))}">{$val['gc_name']}</a></h4>
			      	{/if}
			      	<div class="recommend-class">
			      		{volist name="val['cn_classs']" id="v" length='3'}
		                <span>
		                	<a href="{:url('shop/Search/index',array('cate_id'=>$v['gc_id']))}" title="{$v['gc_name']}">
		                		{$v['gc_name']}
		                	</a>
		                </span>
		                {/volist}
		            </div>
		        </div>
	        
	        
      			<div class="sub-class" cat_menu_id="{$val['gc_id']}">
        			<div class="sub-class-content">
          				
				    	<dl>
					       <!--  <dt>
					            {if (!empty($v['channel_id']))}
						            <h3>
						              	<a href="{:url('shop/Channel/index',array('id'=>$v['channel_id']))}">
						              		{$v['gc_name']}
						              	</a>
						            </h3>
					            {else /}
						            <h3>
						            	<a href="{:url('shop/Search/index',array('cate_id'=>$v['gc_id']))}">
						            		{$v['gc_name']}
						            	</a>
						            </h3>
					            {/if}
					        </dt> -->
					        {volist name="val['class2']" id="v"}
					        <dd class="good-class">
				        	
						           
						            	<a href="{:url('shop/Search/index',array('cate_id'=>$v['gc_id']))}">
						            		{$v['gc_name']}
						            	</a>
						            
					          
					        </dd>
					        {/volist}
				    	</dl>
					    
        			</div>
        			<div class="sub-class-right">
          				{if (!empty($val['cn_brands']))}
				          	<div class="brands-list">
					            <ul>
					            	{volist name="val['cn_brands']" id="brand"}
						              	<li> 
						              		<a href="{:url('shop/Brand/brand_goods',array('brand'=>$brand['brand_id']))}" title="{$brand['brand_name']}">
						              			{if ($brand['brand_pic'] != '')}<img src="__APP__{$brand['brand_pic']}"/>{/if}
						                		<span>{$brand['brand_name']}</span>
						                	</a>
						                </li>
					              	{/volist}
					            </ul>
				          	</div>
			        	{/if}
          
			        	<div class="adv-promotions">
					        {if($val['cn_adv1'] != '')}
						        <a { $val['cn_adv1_link'] == '' ? 'href="javascript:;"' : 'target="_blank" href="'.$val['cn_adv1_link'].'"';}>
						        	<img src="{$val['cn_adv1']}">
						        </a>
					        {/if}
				        	{if($val['cn_adv2'] != '')}
						        <a {$val['cn_adv2_link'] == '' ? 'href="javascript:;"' : 'target="_blank" href="'.$val['cn_adv2_link'].'"';}>
						        	<img src="{$val['cn_adv2']}">
						        </a>
				        	{/if}
			        	</div>
        			</div>
      			</div>
    		</li>
    	{/volist}
  	</ul>
</div>
